{extend name="main/index" /}
{block name="main"}
<form action="{:url('admin/tushu/save')}" method="post" class="form-horizontal"
      style="margin-left: 300px" enctype="multipart/form-data">
    <!--<input type="hidden" value="PUT" name="_method">-->
    <div class="form-group" style="margin-top: 60px; ">
        <label class="col-sm-2 control-label">ID</label>
        <div class="col-sm-4">
            <input name="id" value="" class="form-control" readonly>
        </div>
    </div>

    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">封面</label>
        <div class="col-sm-4">
            <input type="file" name="photo" value="">
        </div>
    </div>

    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">书名</label>
        <div class="col-sm-4">
            <input name="name" type="text" class="form-control" value="">
        </div>
    </div>
    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">作者</label>
        <div class="col-sm-4">
            <input name="zuozhe" type="text" class="form-control" value="">
        </div>
    </div>



    <div class="form-group" style="margin-left: 5px;margin-top: 30px" >
        <label class="col-sm-2 control-label">所属分类</label>
        <select class="form-control" style="width: 250px;" name="cid">
            <option value="">----添加一级分类----</option>

            {volist name="res" id="vo"}
            <option value="{$vo.id}">{$vo.nbsp}{$vo.cname}</option>
            {/volist}
        </select>
    </div>
    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">是否完结</label>
        <div class="col-sm-4">
            <input type="radio" name="end"  value="0" checked>已完结
            <input type="radio" name="end"  value="1" >未完结
        </div>
    </div>

    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">是否热销</label>
        <div class="col-sm-4">
            <input type="radio" name="hot"  value="0" checked>热
            <input type="radio" name="hot"  value="0" >滞
        </div>
    </div>
    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">小说简介</label>
        <div class="col-sm-4">
            <textarea name="desc" id="" cols="50" rows="5"></textarea>
        </div>
    </div>


    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>

{/block}